﻿using System;
using System.Data.SqlClient;
using Devv.Core.UniDataTier;

namespace BikeBouncer.BusinessLayer
{
	public partial class DataAccess
	{
		#region Get

		public static SqlDataReader BlackMarket_Get()
		{
			DataHandler db = new DataHandler();

			return (SqlDataReader)db.ExecuteReader("upBlackMarket_Get");
		}

		public static SqlDataReader BlackMarket_Get(Int32 id)
		{
			DataHandler db = new DataHandler();

			db.AddParameter("@BlackMarketId", id);

			return (SqlDataReader)db.ExecuteReader("upBlackMarket_Get");
		}

		public static SqlDataReader BlackMarket_GetByCity(Int32 id)
		{
			DataHandler db = new DataHandler();

			db.AddParameter("@CityId", id);

			return (SqlDataReader)db.ExecuteReader("upBlackMarket_Get");
		}

		#endregion
	}
}